<?php
require 'lib/init.php';

//分页
$total=mGetOne('select count(*) from article;');
$pageSize=3;
$currentPage=isset($_GET['page'])?$_GET['page']:1;
$pages=pages($total,$pageSize,$currentPage);

$start=($currentPage-1)*$pageSize;
$res=mGetAll("select article.*,cat.cat_name from article left join cat on cat.cat_id=article.cat_id order by article.art_id limit $start,$pageSize;");
require 'view/admin/artlist.html';
